import request from '@/utils/request'

export function getyuanlist(params) {
    return request({
        url: '/sys/user',
        method: 'GET',
        params
    })
}
export function newuser(data) {
    return request({
        url: '/sys/user',
        method: 'POST',
        data
    })
}
export function userbatch(data) {
    return request({
        url: '/sys/user/batch',
        method: 'POST',
        data
    })
}
export function userbatchinfo(id) {
    return request({
        url: `/sys/user/${id}`,
        method: 'GET'
    })
}
export function setbatchinfo(data) {
    return request({
        url: `/sys/user/${data.id}`,
        method: 'PUT',
        data

    })
}
export function setuserallinfo(id) {
    return request({
        url: `/employees/${id}/personalInfo`,
        method: 'GET',
    })
}
export function joballinfo(id) {
    return request({
        url: `/employees/${id}/jobs`,
        method: 'GET',
    })
}
export function setjbuserinfo(data) {
    return request({
        url: `/sys/user/${data.id}`,
        method: 'PUT',
        data
    })
}